package ru.spb.nicetu.altx.mnemo.palette.core;

public abstract class ItemElementDescriptor {

  private String name;
  
  public ItemElementDescriptor(String name) {
    this.name = name;
  }
  
  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }
  
  /*
  public String getType() {
    return type;
  }
  
  public void setType(String type){
    this.type = type;
  }
  */
  
  @Override
  public int hashCode() {
    return super.hashCode() + 
    153*name.hashCode();
  }
  
  @Override
  public boolean equals(Object obj) {
    if (obj == null || obj.getClass() != this.getClass())
      return false;
    
    return obj.hashCode() == this.hashCode();
  }
  
}
